package com.witte.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.witte.entity.RespBean;

@Controller
@ResponseBody
@RequestMapping(value="/api")
@CrossOrigin
public class TestController {
	
	@GetMapping(value = "/test")
	public RespBean test() {
		RespBean rs= RespBean.ok("-------维特项目springboot接口测试！-----");
		return rs;
		
	}
	
}
